//
//  AnalogueStick.h
//  AirSurfaceKit
//
//  Created by limu on 16/2/25.
//  Copyright © 2016年 SimuTech. All rights reserved.
//

#import "AirSurfaceRender+Declare.h"
/**
 *  摇杆方向
 */
typedef NS_ENUM(NSUInteger, AnalogueDirection) {
    // AnalogueStick 的方向枚举
    /**
     * 无
     */
    AnalogueDirectionNone,
    /**
     *  左
     */
    AnalogueDirectionLeft,
    /**
     *  右
     */
    AnalogueDirectionRight,
    /**
     *  前左
     */
    AnalogueDirectionForwardLeft,
    /**
     *  前
     */
    AnalogueDirectionForward,
    /**
     *  前右
     */
    AnalogueDirectionForwardRight,
    /**
     *  后左
     */
    AnalogueDirectionBackwardLeft,
    /**
     *  向后
     */
    AnalogueDirectionBackward,
    /**
     *  后右
     */
    AnalogueDirectionBackwardRight,
    
    // ButtonSick的方向
    /**
     *  向上
     */
    AnalogueDirectionUp,
    /**
     *  向下
     */
    AnalogueDirectionDown,
    /**
     *  左转
     */
    AnalogueDirectionLeftRotation,
    /**
     *  右转
     */
    AnalogueDirectionRightRotation,
};

@interface AnalogueStick : UIView
@property (nonatomic, readonly) CGFloat xValue;
@property (nonatomic, readonly) CGFloat yValue;
@property (nonatomic, assign) ControlMode controlMode;
@property (nonatomic, strong) AirSurfaceRender * airSurfaceRender;

/**
 *  背景图片
 */
@property (nonatomic, readonly) UIImageView *backgroundImageView;
/**
 *  按钮图片
 */
@property (nonatomic, readonly) UIImageView *handleImageView;
/**
 *  方向
 */
@property (nonatomic, readonly) AnalogueDirection direction;

@end
